<?php
/**
 * Created by PhpStorm.
 * User: pc
 * Date: 2020/1/11
 * Time: 15:57
 */

namespace app\api\controller\v1;

use think\Db;
use think\controller;
use think\Request;
use app\api\controller\behavior\Cors as header;


class Trial
{
    static function index(){
        $request=Request::instance();
        $res=$request->param();
        $h= new header();
        $h->appInit($res);


        $page = input("page");
        $num = input("num");
        $ql=Db::table("trial")->order("id")->page($page,$num)->select();
//        print_r($res);
//        print_r($ql);
//        $content = mb_convert_encoding( $ql, 'UTF-8', 'UTF-8,GBK,GB2312,BIG5' );
        return $ql;
    }
}
